<div class="row">
	<ul class="nav nav-tabs">
	  <li class="active"><a href="#base" data-toggle="tab">基础信息</a></li>
	  <li><a href="#profile" data-toggle="tab">页面信息</a></li>
    <!--
	  <li><a href="#messages" data-toggle="tab">关键词</a></li>
	  <li><a href="#settings" data-toggle="tab">其他</a></li>
  -->
	</ul>
  <?php $form=$this->beginWidget('CActiveForm', 
      array("id"=>'userform',
      'enableClientValidation'=>true,
      'clientOptions'=>array(
        'validateOnSubmit'=>true,
      ),
      "htmlOptions"=>array(
          "class"=>"form-horizontal",
          "enctype"=>"multipart/form-data")
    )); ?>
<div id="pane" class='tab-content'>
	<div id="base" class='tab-pane fade active in'>
		<p>
	


        <?php 
        $success =yii::app()->user->getFlash('success');
        if (isset($success)) { ?>
        <div class="alert alert-success">
          <button type="button" class="close" data-dismiss="alert">&times;</button>
          <?php echo $success ?>
        </div>
       <?php } ?>
    <div class="control-group">
	    <label class="control-label">网站名称:</label>
	    <div class="controls">
	    	<input type="text" name="name" value="<?php echo $name ?>">
	    	
	    </div>
    </div>
    <div class="control-group">
      <label class="control-label">logo:</label>
      <div class="controls">
        <input type="file" name="logo">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">备案号:</label>
      <div class="controls">
       	<input type="text" name="ICP" value="<?php echo $ICP ?>">
       
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">开启或关闭网站:</label>
      <div class="controls">
        <?php echo CHtml::dropDownList("IsOpen",'true',array('true'=>'开启','false'=>'关闭')) ?>
      </div>
    </div>

   

	
		</p>
	</div>
	<div id="profile" class='tab-pane fade'>
		<div class="control-group">
      <label class="control-label">描述:</label>
      <div class="controls">
        <textarea rows="3" name="description" class="span5"><?php echo $description ?></textarea>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">关键词:</label>
      <div class="controls">
        <textarea rows="3" name="Keywords" class="span5"><?php echo $Keywords ?></textarea>
      </div>
    </div>
	</div>
	<div id="messages" class='tab-pane fade'>
		<p>标签13</p>
	</div>
	<div id="settings" class='tab-pane fade'>
		<p>标签14</p>
	</div>
  <p>
     <div class="control-group">
          <div class="controls">
            <input type="submit" class="btn" value="确定">
          </div>
    </div>
  </p>
<?php $this->endWidget(); ?>
</div>
	
</div>